
 /**
 * @FileName ApiResult.java
 * @Desciption TODO
 * @author zhouchuanbo
 * @date 2019年4月11日
 */
package com.ruoyi.web.sso.common.vo;

 import java.io.Serializable;

 /**
  * 定义接口统一返回类
  * @Description TODO
  * @FileName ApiResult.java
  * @author zhouchuanbo
  * @date 2019年4月11日
  */
 public class ApiResultVO<T> implements Serializable{

      /**
      * @Field long serialVersionUID
      * @Description TODO
      */
     private static final long serialVersionUID = 1L;
     /**
      * 业务数据
      */
     private T data;
     /**
      * 权限数据
      */
     private AuthVO auth;


     /**
     * @return the data
     */
     public T getData() {
         return data;
     }


     /**
     * @param data the data to set
     */
     public void setData(T data) {
         this.data = data;
     }

     /**
     * @return the auth
     */
     public AuthVO getAuth() {
         return auth;
     }

     /**
     * @param auth the auth to set
     */
     public void setAuth(AuthVO auth) {
         this.auth = auth;
     }



     public ApiResultVO() {
         super();
     }


     public ApiResultVO(T data) {
         super();
         this.data = data;
     }


     public ApiResultVO(AuthVO auth) {
         super();
         this.auth = auth;
     }


     public ApiResultVO(T data, AuthVO auth) {
         super();
         this.data = data;
         this.auth = auth;
     }
     /**
      *
      * Description:设置返回值
      * @param data 泛型数据类
      * @return ApiResultVO结果类
      */
     public static  ApiResultVO putDate(Object data){
         return new  ApiResultVO(data);
     }

 }
